libxc: provide notification of final checkpoint to restore end
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 18:08:11 +0000 (19:08 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 18:08:11 +0000 (19:08 +0100)
commit00a4b65f8534c9e6521eab2e6ce796ae36037774
tree6c3494e0dcb6f1e7214becfd7fe88772d0d45e17
parentec7b9a1b9b2a935fa322eca98d95741ff6d162bb
libxc: provide notification of final checkpoint to restore end

When the restore code sees this notification it will restore the
currently in-progress checkpoint when it completes.

This allows the restore end to finish up without waiting for a
spurious timeout on the receive fd and thereby avoids unnecessary
error logging in the case of a successful migration or restore.

In the normal migration or restore case the first checkpoint is always
the last. For a rolling checkpoint (such as Remus) the notification is
currently unused but could be used in the future for example to
provide a controlled failover for reasons other than error

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xg_save_restore.h